package com.hznu.ez4life.modules.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author DragonDoor
 * @since 2019-07-25
 */
public class Assess implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer evaId;
    private Integer ordersId;
    /**
     * 1-好评，2-中评，3-差评
     */
    private Integer level;
    private String content;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    private Date asstime;
    private Integer type;

    @TableField(exist = false)
    User user;
    @TableField(exist = false)
    User eva;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getEva() {
        return eva;
    }

    public void setEva(User eva) {
        this.eva = eva;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getEvaId() {
        return evaId;
    }

    public void setEvaId(Integer evaId) {
        this.evaId = evaId;
    }

    public Integer getordersId() {
        return ordersId;
    }

    public void setordersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getAsstime() {
        return asstime;
    }

    public void setAsstime(Date asstime) {
        this.asstime = asstime;
    }

    @Override
    public String toString() {
        return "Assess{" +
        ", id=" + id +
        ", userId=" + userId +
        ", evaId=" + evaId +
        ", ordersId=" + ordersId +
        ", level=" + level +
        ", content=" + content +
        ", asstime=" + asstime +
        "}";
    }
}
